random point seeds within a cyircle python

23

r = R * sqrt(random())
theta = random() * 2 * PI
x = centerX + r * cos(theta)
y = centerY + r * sin(theta)

Comments

Submit
0 Comments